Help > Reference > Macros > Collections > Categories collection

Categories collection

This collection contains Category objects that represent the detected categories for the search results. Use Categories property of the Tab object to access this collection.

The following example enumerates the categories of the active tab, writing them to file "c:\output.txt".

Example

Set FSO = CreateObject("Scripting.FileSystemObject")
Set Output = FSO.CreateTextFile("c:\output.txt", True)
For Each Category in App.ActiveTab.Categories
  Output.WriteLine Category.Name & " - " & Category.Count
Next

See Also

Macro Object Model

Collections

Tab.Categories

Category